//
//  CJBannerCustomEvent.m
//  CJMobileAdapter
//
//  Created by ly on 2024/3/4.
//

#import "CJBannerCustomEvent.h"

@implementation CJBannerCustomEvent

- (NSString *)networkUnitId {
    return self.serverInfo[@"unitId"];
}

- (void)bannerAdDidLoad:(nonnull UIView *)bannerView resourceId:(nonnull NSString *)resourceId {
    [self trackBannerAdLoaded:bannerView adExtra:nil];
}

- (void)bannerAdLoadFailed:(nonnull id)bannerAd error:(nonnull NSError *)error {
    [self handleLoadingFailure:error];
    
}

- (void)bannerAdOnClicked:(nonnull id)bannerAd {
    [self trackBannerAdClick];
}

- (void)bannerAdOnClosed:(nonnull id)bannerAd {
    [self trackBannerAdClosed];
}

- (void)bannerAdOnShow:(nonnull id)bannerAd {
    NSLog(@"TouTiaoBannerCustomEvent::bannerAdViewDidBecomVisible:WithAdmodel:");
}

@end
